/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mldn.demo;

/**
 *
 * @author Administrator
 */
public class StudentDemo {
    public static void main(String[] args) {
        Student2 student2 = new Student2();
        student2.setAge(30);        
        student2.setSchool("qinghua");
        System.out.println(student2.getAge());
        System.out.println(student2.getSchool());
    }
}

class Student2 extends Person {
    private String school;

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
    
    
}